//package com.wildlife.springboot.mapper.service.impl;
//
//import com.wildlife.springboot.mapper.IllegalProductMapper;
//import com.wildlife.springboot.mapper.RareEndangeredMapper;
//import com.wildlife.springboot.mapper.ThreeZonesMapper;
//import com.wildlife.springboot.mapper.service.StatService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
//@Service
//public class StatServiceImpl implements StatService {
//    @Autowired
//    private RareEndangeredMapper rareEndangeredMapper;
//
//    @Autowired
//    private ThreeZonesMapper threeZonesMapper;
//
//    @Autowired
//    private IllegalProductMapper illegalProductMapper;
//
//    @Override
//    public int getEndangeredTotal() {
//        // 使用 MyBatis-Plus 的 count 查询
//        Long count1 = rareEndangeredMapper.selectCount(null);
//        Long count2 = threeZonesMapper.selectCount(null);
//        Long count3 = illegalProductMapper.selectCount(null);
//        return (int) (count1 + count2 + count3);
//    }
//}
